<template>
  <div id="app">
    <header>
      <h1>Admin Dashboard</h1>
    </header>
    <main>
      <m-button @click="handleClick">Admin Button</m-button>
      <p>{{ message }}</p>
      
      <!-- 添加天气卡片组件 -->
      <m-weather-card 
        city="上海"
        temperature="26"
        condition="多云"
        humidity="70"
        wind-speed="8"
      />
    </main>
  </div>
</template>

<script>
import { truncate } from '@monorepo-vue/utils'

export default {
  name: 'App',
  data() {
    return {
      message: truncate('This is a very long message that should be truncated', 30)
    }
  },
  methods: {
    handleClick() {
      alert('Admin button clicked!')
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>